package com.blqy.fr.user.client;


import com.blqy.fr.common.result.Result;
import com.blqy.fr.user.client.impl.TemplateInfoDegradeFeignClient;

import com.blqy.fr.vo.template.TemplateResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-template", fallback = TemplateInfoDegradeFeignClient.class)
public interface TemplateInfoFeignClient {

    @GetMapping("api/template/templateInfo/getTemplateIdByTeamId/{teamId}")
     Result<Long> getTemplateIdByTeamId(@PathVariable Long teamId);

    @GetMapping("api/template/templateInfo/getTemplateNameByTeamId/{teamId}")
    Result<String> getTemplateNameByTeamId(@PathVariable Long teamId);


    @GetMapping("api/template/templateInfo/getTemplateInfo/{templateName}")
    public Result<TemplateResponseVo> getTemplateInfo(@PathVariable String templateName);




}